#ifndef ARCHIVE_FILE
#define ARCHIVE_FILE
#include "Archive/IFile.hpp"
#include <string>
#include <vector>
namespace Archive{
class File : public IFile
{
public:
	File():
	 m_filename()
	,m_data()
	{
	}
	~File()
	{
	}
	virtual const char* name()const
	{
		return m_filename.c_str();
	}
	virtual int size()const
	{
		return static_cast<int>( m_data.size() );
	}
	virtual unsigned char* data()
	{
		return &m_data[0];
	}
public:
	std::string m_filename;
	std::vector<unsigned char> m_data;
};
}//Archive

#endif
